# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState do
  @moduledoc """
  A mask that indicates which of the fields on the base DocumentStyle have been changed in this suggestion. For any field set to true, there's a new suggested value.

  ## Attributes

  *   `backgroundSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.BackgroundSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in background have been changed in this suggestion.
  *   `defaultFooterIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to default_footer_id.
  *   `defaultHeaderIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to default_header_id.
  *   `evenPageFooterIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to even_page_footer_id.
  *   `evenPageHeaderIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to even_page_header_id.
  *   `firstPageFooterIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to first_page_footer_id.
  *   `firstPageHeaderIdSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to first_page_header_id.
  *   `flipPageOrientationSuggested` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if there was a suggested change to flip_page_orientation.
  *   `marginBottomSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_bottom.
  *   `marginFooterSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_footer.
  *   `marginHeaderSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_header.
  *   `marginLeftSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_left.
  *   `marginRightSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_right.
  *   `marginTopSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to margin_top.
  *   `pageNumberStartSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to page_number_start.
  *   `pageSizeSuggestionState` (*type:* `GoogleApi.Docs.V1.Model.SizeSuggestionState.t`, *default:* `nil`) - A mask that indicates which of the fields in size have been changed in this suggestion.
  *   `useCustomHeaderFooterMarginsSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to use_custom_header_footer_margins.
  *   `useEvenPageHeaderFooterSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to use_even_page_header_footer.
  *   `useFirstPageHeaderFooterSuggested` (*type:* `boolean()`, *default:* `nil`) - Indicates if there was a suggested change to use_first_page_header_footer.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :backgroundSuggestionState =>
            GoogleApi.Docs.V1.Model.BackgroundSuggestionState.t() | nil,
          :defaultFooterIdSuggested => boolean() | nil,
          :defaultHeaderIdSuggested => boolean() | nil,
          :evenPageFooterIdSuggested => boolean() | nil,
          :evenPageHeaderIdSuggested => boolean() | nil,
          :firstPageFooterIdSuggested => boolean() | nil,
          :firstPageHeaderIdSuggested => boolean() | nil,
          :flipPageOrientationSuggested => boolean() | nil,
          :marginBottomSuggested => boolean() | nil,
          :marginFooterSuggested => boolean() | nil,
          :marginHeaderSuggested => boolean() | nil,
          :marginLeftSuggested => boolean() | nil,
          :marginRightSuggested => boolean() | nil,
          :marginTopSuggested => boolean() | nil,
          :pageNumberStartSuggested => boolean() | nil,
          :pageSizeSuggestionState => GoogleApi.Docs.V1.Model.SizeSuggestionState.t() | nil,
          :useCustomHeaderFooterMarginsSuggested => boolean() | nil,
          :useEvenPageHeaderFooterSuggested => boolean() | nil,
          :useFirstPageHeaderFooterSuggested => boolean() | nil
        }

  field(:backgroundSuggestionState, as: GoogleApi.Docs.V1.Model.BackgroundSuggestionState)
  field(:defaultFooterIdSuggested)
  field(:defaultHeaderIdSuggested)
  field(:evenPageFooterIdSuggested)
  field(:evenPageHeaderIdSuggested)
  field(:firstPageFooterIdSuggested)
  field(:firstPageHeaderIdSuggested)
  field(:flipPageOrientationSuggested)
  field(:marginBottomSuggested)
  field(:marginFooterSuggested)
  field(:marginHeaderSuggested)
  field(:marginLeftSuggested)
  field(:marginRightSuggested)
  field(:marginTopSuggested)
  field(:pageNumberStartSuggested)
  field(:pageSizeSuggestionState, as: GoogleApi.Docs.V1.Model.SizeSuggestionState)
  field(:useCustomHeaderFooterMarginsSuggested)
  field(:useEvenPageHeaderFooterSuggested)
  field(:useFirstPageHeaderFooterSuggested)
end

defimpl Poison.Decoder, for: GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState do
  def decode(value, options) do
    GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Docs.V1.Model.DocumentStyleSuggestionState do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
